{include file="header.html"}
<style>
    pre {
        display: block;
        padding: 9.5px;
        margin: 0 0 10px;
        font-size: 13px;
        line-height: 1.42857143;
        color: #333;
        word-break: break-all;
        word-wrap: break-word;
        background-color: #f5f5f5;
        border: 1px solid #ccc;
        border-radius: 4px;
        white-space: pre-wrap;
        min-width: 500px;
        max-width: 600px;  
    }
    .dataTable td.text-center {
        text-align: center;
    }
</style>
<script type="text/javascript">
    $(function () {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>
<div id="rightTop">
    <p>{$lang.admin_log}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="admin_log"/>
                <input type="hidden" name="act" value="index"/>
                {$lang.admin_name}:<input class="queryInput" type="text" value="{$query.admin_name}" name="admin_name"/>
                {$lang.add_time_from}:<input class="queryInput" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date"/>
                {$lang.add_time_to}:<input class="queryInput" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date"/>
                <input type="submit" class="formbtn" value="{$lang.query}"/>
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=admin_log">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">{include file=page.top.html}</div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $admin_log_list}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall"/></td>
            <td width="200"><span ectype="order_by" fieldname="admin_name">{$lang.admin_name}</span></td>
            <td width="200"><span ectype="order_by" fieldname="method">{$lang.method}</span></td>
            <td width="200"><span ectype="order_by" fieldname="created_at">{$lang.created_at}</span></td>
            <td width="200">{$lang.input}</td>
            <td width="200" class="text-center"><span ectype="order_by" fieldname="ip">{$lang.IP}</span></td>
            <td><span ectype="order_by" fieldname="url">{$lang.path}</span></td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$admin_log_list item=admin_log}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$admin_log.id}"/></td>
            <td>{$admin_log.admin_name|escape}</td>
            <td>{$admin_log.method}</td>
            <td>{$admin_log.created_at}</td>
            <td>
                <pre>{$admin_log.input}</pre>
            </td>
            <td class="text-center">{$admin_log.ip}</td>
            <td>{$admin_log.path}</td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="10">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <div class="pageLinks">{include file=page.bottom.html}</div>
</div>
{include file="footer.html"}